package de.hszigr.inf.usermanagement;

import java.util.List;

import de.hszigr.inf.model.User;
import de.hszigr.inf.persistenzschicht.Dao;

public class UserManager {

	private Dao dao = new Dao();
	
	public UserManager() {
	
	}
	
	public User isValidUser(String username, String password){
		return dao.isUser(username, password);
	}
	
	public List<User> getAllUsers(){
		return dao.getAllUser();
	}
	
	public void saveUser(User user){
		dao.saveUser(user);
	}
	
	public User getUser(String username){
		return dao.getUser(username);
	}
	
	public void deleteUser(String username){
		dao.deleteUser(username);
	}
	
	public void editUser(User alt, User neu){
		dao.editUser(alt, neu);
	}
}
